$(document).ready(function() {

	$("#main-content").css({
		'width': viewport().width - 100 + 'px',
		'height': viewport().height - 100 + 'px'
	});

	$(window).resize(function() {
		$("#main-content").css({
			'width': viewport().width - 100 + 'px',
			'height': viewport().height - 100 + 'px'
		});
		// resizeList();
		$('#centuries-frame').sly('reload');
		$('#years-frame').sly('reload');
	});
});

function resizeList() {
	pHeight = $('#main-content .event-list').height();
	$('.event-list ul.list').css('height', pHeight - 50);

}